<%-- 
    Document   : declaracion_cheques
    Created on : 27-oct-2011, 0:20:34
    Author     : Yojugracu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id = "conectar" scope = "application" class= "Monetario.ManipulacionMysql"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<div id="paso1_crear_cheque" class="paso1_cuenta">
    <%
    String paso=request.getParameter("paso");
    if(paso==null){paso="1";}
if(paso.equals("1")){
%>
		<!--  start step-holder -->
		<div id="step-holder">
			<div class="step-no">1</div>
			<div class="step-dark-left"><a href="">Paso 1</a></div>
			<div class="step-dark-right">&nbsp;</div>
			<div class="step-no-off">2</div>
			<div class="step-light-left">Paso 2</div>
			<div class="step-light-right">&nbsp;</div>
			<div class="clear"></div>
		</div>
		<!--  end step-holder -->

		<!-- start id-form -->
		<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
		<tr>
			<th valign="top">No. Cheque:</th>
			<td>
                            <input  id="numcheque" type="text" class="inp-form" />
                        </td>
			<td>
                            <div id="div-cuenta-left" class="error-left" style="display:none"></div>
                            <div id="div-cuenta-inner" class="error-inner" style="display:none">Este campo es requerido</div>
			</td>
		</tr>
                <tr>
                    <th valign="top">Declarar:</th>
                    <td>
                    <select id="declarado" class="styledselect_form_1">
                            <option value="5">Robado</option>
                            <option value="6">Extraviado</option>
                    </select>
                    </td>
                    <td></td>
                </tr>
		<tr>
                   <br>
		<td><br></td>
	</tr>
	<tr>
		<th>&nbsp;</th>
 
	</tr>
	</table>
	<!-- end id-form  -->
        		<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
        <tr>
		<th>&nbsp;</th>
		<td valign="top">
			<input type="button" value="" class="form-submit" onclick="declaracion_cheques_paso2();" />
			<input type="button" value="regresar" class="form-reset" Onclick="retornar_pagina_inicio();" />
		</td>
		<td></td>
	</tr>
	</table>
<%
}
else{
    String numcheque=request.getParameter("numcheque");
    String declarado=request.getParameter("declarado");
    if(numcheque!=null && declarado!=null){
        conectar.declarar_cheque(numcheque, declarado);
    %>
    		<div id="step-holder">
			<div class="step-no-off">1</div>
			<div class="step-light-left"><a href="">Paso 1</a></div>
			<div class="step-light-right">&nbsp;</div>
			<div class="step-no">2</div>
			<div class="step-dark-left">Paso 2</div>
			<div class="step-dark-right">&nbsp;</div>
			<div class="clear"></div>
		</div>
    <h2>Su cheque &nbsp;<% out.println(numcheque+" ya ha sido declarado como lo solicito  ");%>&nbsp;  de forma exitosa.</h2>
    <%
}
}
%>

</div>
